namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 扫描记录
    /// </summary>
    public DbSet<POWcsScanner> WcsScanners { get; set; }
}

/// <summary>
/// 扫描记录
/// 表[wcs_scanner]
/// </summary>
[Table("wcs_scanner")]
public class POWcsScanner
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wcs_scanner.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 条码号
    /// [wcs_scanner.barcode)]
    /// </summary>
    [Column("barcode")]
    public string Barcode { get; set; }
    /// <summary>
    /// 开始位置
    /// [wcs_scanner.start_loc)]
    /// </summary>
    [Column("start_loc")]
    public long? StartLoc { get; set; }
    /// <summary>
    /// 0：扫描；1：创建中；2：创建完成
    /// [wcs_scanner.status)]
    /// </summary>
    [Column("status")]
    public int? Status { get; set; }
    /// <summary>
    /// 任务创建成功/失败时间
    /// [wcs_scanner.status_time)]
    /// </summary>
    [Column("status_time")]
    public DateTime? StatusTime { get; set; }
    /// <summary>
    /// [wcs_scanner.scanner_count)]
    /// </summary>
    [Column("scanner_count")]
    public int? ScannerCount { get; set; }
    /// <summary>
    /// [wcs_scanner.remark_memo)]
    /// </summary>
    [Column("remark_memo")]
    public string RemarkMemo { get; set; }
    /// <summary>
    /// 创建时间
    /// [wcs_scanner.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [wcs_scanner.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 成功生成时间
    /// [wcs_scanner.success_time)]
    /// </summary>
    [Column("success_time")]
    public DateTime? SuccessTime { get; set; }
    /// <summary>
    /// 结束时间
    /// [wcs_scanner.finish_time)]
    /// </summary>
    [Column("finish_time")]
    public DateTime? FinishTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [wcs_scanner.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 优先级 数值越大优先级越高
    /// [wcs_scanner.priority)]
    /// </summary>
    [Column("priority")]
    public int? Priority { get; set; }
    /// <summary>
    /// 生成任务id
    /// [wcs_scanner.task_id)]
    /// </summary>
    [Column("task_id")]
    public long? TaskId { get; set; }
    /// <summary>
    /// 光电传递的高度类型 1高胎 0低胎
    /// [wcs_scanner.height_type)]
    /// </summary>
    [Column("height_type")]
    public int? HeightType { get; set; }
    /// <summary>
    /// 第一次创建任务失败原因
    /// [wcs_scanner.error_code)]
    /// </summary>
    [Column("error_code")]
    public long? ErrorCode { get; set; }
    /// <summary>
    /// 第一次创建任务失败时间
    /// [wcs_scanner.error_time)]
    /// </summary>
    [Column("error_time")]
    public DateTime? ErrorTime { get; set; }

}
